#! /bin/bash

if [ -z "$CC" ]; then
    local test_names="cc gcc"

    local b=
    for b in $test_names; do
        which $b &> /dev/null
        local tmp=$?

        if [ "$tmp" -eq "0" ]; then
            ret="$(which $b)"
            break
        fi
    done

else
    ret="$CC"
fi

